package com.roger.springcloudGreenwich.dataStructure;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by yulei on 2022/2/1.
 */
public class Test {
    public static void main(String[] args) {
        User u1 = new User("1","roger","30");
        User u2 = new User("2" , "roger","30");
        System.out.println(u1.equals(u2));
        Set set = new HashSet();
        set.add(u1);
        set.add(u2);
        System.out.println(set.size());
    }
}
